<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>竟拍加价结果页</title>
<style type="text/css">
	body{background: url('${ctx }/images/login_background.png') no-repeat;}
</style>

</head>
<body>

<div style="font-family:宋体;font-size: 14px;margin: 0 auto;">
	<div style="color: #FF0000;font-family: 幼圆;font-size: 18px;margin: 0 auto;margin-top:30px ;text-align: center;">
		<span id="page_title"></span>
	</div>
	<div style="color: #ff0000;text-align: center;margin-top: 30px; padding: 20px;line-height: 30px;">${requestScope.returnMsg }</div>
	<div style="text-align: center;margin-top: 40px;">离竟拍结束还有<span id="remain_time"></span></div>
	<div style="text-align: center;margin-top: 10px;" id="ttt"></div>
</div>

<!-- 关闭按钮 begin -->
<div style="position: absolute;left: 351px;top: 13px;">
	<img src="${ctx }/images/close.gif" width="16" height="16" style="cursor: pointer;" onclick="closeWin()"/>
</div>
<!-- 关闭按钮 end -->

<script type="text/javascript">
var   sm = 2 ; 
function   closeit(){ 
    setInterval( "f(); ",1000);
    
   	var page_title = unescape('${requestScope.page_title}');
	var remain_time = unescape('${requestScope.remain_time}');

	document.getElementById("page_title").innerHTML = page_title ;
	document.getElementById("remain_time").innerHTML = remain_time ;
	 
    setTimeout( "closeWin()",sm*1000);   //单位是毫秒，这里是5秒 
} 
function f(){
	var ttt = document.getElementById("ttt");
    ttt.innerText= "还有 "+sm+ "秒窗口自动关闭！ ";     
    sm--; 
} 
function closeWin(){
	parent.live_price();
	parent.closePopupDiv("_link_div_win");
}

closeit();
</script>
</body>
</html>
